/*
 *  Copyright 2019-2020 Zheng Jie
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package com.fzhucc.modules.system.domain;

import com.fzhucc.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.Comment;

import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author yyg
 * @website https://eladmin.vip
 * @description /
 * @date 2023-11-21
 **/
@Data
@Entity
@Table(name = "sys_user")
public class UserSmall implements Serializable {

    @Id
    @Column(name = "user_id")
    @NotNull(groups = BaseEntity.Update.class)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "ID", hidden = true)
    public Long id;

    @NotBlank
    @Column(unique = true)
    @ApiModelProperty(value = "用户名称")
    public String username;

    @NotBlank
    @ApiModelProperty(value = "电话号码")
    public String phone;

    @ApiModelProperty(value = "密码")
    public String password;

    @NotNull
    @ApiModelProperty(value = "是否启用")
    public Boolean enabled;

    @ApiModelProperty(value = "用户类型 企业/团队3  专家4   智库5  投资机构6  技术经理人7   其他8")
    public Long type;

    @ApiModelProperty(value = "微信unionId")
    @Column(unique = true)
    public String unionId;

    @ApiModelProperty(value = "地区划分 即什么地区看的到什么地区的数据,省的看到全部")
    public String orgArea;

    @ApiModelProperty(value = "积分分数")
    private Integer fen;

    @ApiModelProperty(value = "在h5是否使用大屏")
    public Integer ish5data;

    @ApiModelProperty(value = "用来存储h5前端所传递的地区参数 不产生实际效果 用来统计数据使用")
    public String h5area;


}
